//cryptoMsg.js
var WXBizDataCrypt = require('./WXBizDataCrypt.js')

let appId = 'wxcfba675bcd332ebf'

module.exports = function (encryptedData,sessionKey,iv) {
	var pc = new WXBizDataCrypt(appId , sessionKey)
	
	var data = pc.decryptData(encryptedData , iv)
	
	return data
}

